Page({
  data: {
    doginfo: {},
  },
  onLoad: function (options) {
    wx.hideShareMenu()
    let slet = this;
    wx.showLoading({
      title: '加载中',
      mask: true,
    })
    wx.request({
      url: getApp().data.apiUrl + '/GetDogInfo.ashx',
      data: {
        did: options.id
      },
      method: 'GET',
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        var resdata = JSON.parse(decodeURIComponent(JSON.stringify(res.data)));
        console.log(resdata);
        slet.setData({
          doginfo: resdata
        })
      },
      complete: function () {
        wx.hideLoading();
      }
    })
  }
})